package org.wlw.en;

public class TestDog {
	public static void main(String[] args) {
		Dog d = new Dog() ;
		d.name = "旺财";
		d.run();
		
		Cat c = new Cat();
		c.name = "小黄";
		c.run();
	}
}

class Animal {
	String name;
	int age;
	
	public void run() {
		System.out.println(name+" is runing!");
	}
}

class Cat extends Animal {
	public void run() {
		System.out.println(name+" 跳着跑!");
	}
}

class Dog extends Animal {
	
}
